﻿namespace FluentViewModel.Demo.Services
{
    public sealed class ViewModelController : IViewModelController
    {
        public void Command(IDemoViewModel demoViewModel)
        {
            ++demoViewModel.Counter;
        }

        public void Initialize(IDemoViewModel demoViewModel)
        {
            demoViewModel.Title = "View Model Demo!";
            demoViewModel.Text = "Clear this field to see what happens!";
        }
    }
}